},
}, class AppIcon extends AppViewItem {
_init(app, iconParams = {}) {
- // Get the isDraggable property without passing it on to the BaseIcon:
+ // Get properties without passing them on to the BaseIcon:
const isDraggable = iconParams['isDraggable'] ?? true;
delete iconParams['isDraggable'];
+ const popupMenuSide = iconParams['popupMenuSide'] ?? St.Side.LEFT;
+ delete iconParams['popupMenuSide'];
const expandTitleOnHover = iconParams['expandTitleOnHover'];
delete iconParams['expandTitleOnHover'];
this.app = app;
this._id = app.get_id();
this._name = app.get_name();
+ this._popupMenuSide = popupMenuSide;
this._iconContainer = new St.Widget({
layout_manager: new Clutter.BinLayout(),
return this.app.get_id();
}
- popupMenu(side = St.Side.LEFT) {
+ popupMenu() {
this.setForcedHighlight(true);
this._removeMenuTimeout();
this.fake_release();
if (!this._menu) {
- this._menu = new AppMenu(this, side, {
+ this._menu = new AppMenu(this, this._popupMenuSide, {
favoritesSection: true,
showSingleWindows: true,
});
super._init(app, {
setSizeManually: true,
showLabel: false,
+ popupMenuSide: St.Side.BOTTOM,
});
}
- popupMenu() {
- super.popupMenu(St.Side.BOTTOM);
- }
-
// Disable scale-n-fade methods used during DND by parent
scaleAndFade() {
}